import {
  DEVICEADD,DEVICEEDIT,DEVICEDEL,
  DEVICECHANGE,DEVICELIST,CARDLIST,
  ADJUSTTIME
} from "./api";
import { METHOD, request } from "@/utils/request";

//设备列表
export function list(params) {
  return request(DEVICELIST, METHOD.GET, params);
}
//新增设备
export function add(params) {
  return request(DEVICEADD, METHOD.POST, params);
}
//编辑设备
export function update(params) {
  return request(DEVICEEDIT, METHOD.POST, params);
}
//删除设备
export function del(params) {
  return request(DEVICEDEL, METHOD.POST, params);
}
//启用停用设备
export function change(params) {
  return request(DEVICECHANGE, METHOD.POST, params);
}
//控制卡
export function cardList(params) {
  return request(CARDLIST, METHOD.GET, params);
}
//校准时间
export function adjustTime(params) {
  return request(ADJUSTTIME, METHOD.POST, params);
}

